{foreach $mainMenu as $m}
	<a href="{$m[''].link}">{$m[''].menu_name}</a>
	{if !$m@last}  |  {/if}
{/foreach}